package com.antdesignbackend.backend.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

@Data
/**
 * 用户
 */
@TableName("Users")
public class Users implements Serializable {
    @TableId(value = "UserID", type = IdType.AUTO)
    private Integer userID;
    /**
     * 用户名
     */
    @TableField("UserName")
    private String userName;
    /**
     * 密码
     */
    private String password;
    /**
     * 性别
     * 男1
     * 女0
     */
    private Integer sex;
    /**
     * 创建时间
     */
    @TableField("CreateDateTime")
    private String createDateTime;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String phone;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String email;
    /**
     * 银行卡号
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String bankNo;
    /**
     * 银行名称
     */
    @TableField(value = "BankName", updateStrategy = FieldStrategy.IGNORED)
    private String bankName;
    /**
     * 是否存活
     * 1存活（正在使用中）
     * 0已经废弃
     */
    private Integer activity;
    /**
     * 用户类型
     *
     * 0管理员，1总代理，2分销代理商
     */
    @TableField("UserType")
    private Integer userType;
    /**
     * 用户风格
     */
    private String style;
    /**
     * 商户别名
     * 用户展示的时候显示商家名称，而不是用户名
     */
    @TableField(value = "AliasName", updateStrategy = FieldStrategy.IGNORED)
    private String aliasName;
    /**
     * 特定key，允许访问非角色的功能
     */
    @TableField("KeyName")
    private String keyName;

    /**
     * 父节点
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer parentID;

    /**
     * 预存金额
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double amount;

    /**
     * 持卡人名称
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String bankUserName;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String alipay;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String weixinpay;
    /**
     * 谷歌登录secret
     */
    @TableField("secret")
    private String secret;
    /**
     * 谷歌结算secret
     */
    @TableField("secret2")
    private String secret2;
}
